package com.biye.api.controller.admin;

import com.alibaba.fastjson.JSONObject;
import com.biye.api.service.UserManageService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Author Maple.Chen
 * @Description 用户管理控制器
 * @Date 13:10 2021/4/12
 **/
@Controller
@RequestMapping("admin")
public class UserManageController {

    @Resource
    private UserManageService userManageService;

    // 根据用户身份+ID删除用户
    @RequestMapping(value = "user_manage", method = RequestMethod.DELETE)
    @ResponseBody
    public JSONObject delUser(@RequestBody Map<String, Object> requestMap){
        return userManageService.delUser(requestMap);
    }

}
